<?php
class Tesst extends IController{
    public function add(){
        $this->redirect('add');
    }
    public function add_do(){
        $model = new IModel('news');
        $name = IReq::get('name','post');
        $pwd = IReq::get('pwd','post');
        $data = array('name' => $name,'pwd'=>$pwd);
        // print_r($data);die();
        $model->setData($data);
        $res = $model->add();
        if ($res) {
            $this->redirect("show");
        }

    }
    public function show(){
        echo "132";
    }
}